from base.mybase import Tools


class infoS_model(Tools):
    # 定义路径
    path = '/task/info'

    # 发送注册请求
    def infoS_action(self, task_id, hd):
        mydata = {'task_id': task_id}
        res = self.huihua.post(url=self.hosturl + self.path, data=mydata, headers=hd)
        print(res.json())
        return res.json()
